package Otros;

import java.awt.Component;

import javax.swing.JComponent;
import javax.swing.JTable;
import javax.swing.table.TableCellRenderer;

public class ToolTipTable extends JTable {
	  @Override
	  public Component prepareRenderer(TableCellRenderer renderer,
	        int row, int column) {
	    Component c = super.prepareRenderer(renderer, row, column);
	    if (c instanceof JComponent) {
	      JComponent jc = (JComponent) c;
	      jc.setToolTipText((String) getValueAt(row, column));
	    }
	    return c;
	  }
	}
